<%--
  Created by IntelliJ IDEA.
  User: 30969
  Date: 2024/1/11
  Time: 9:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<script>
    var a = 'fdsfd';    //被监测的数据
    var numCheck = /^(([0-9]|[1-9][1-9]|1[0-7][0-9])(\.[0-9]+)?|180)$/;   //正则表达式

    console.log(numCheck.test(a))    //正则表达式.test(数据)

    /*for (let i = 0; i <10000 ; i++) {
        console.log("hello")
    }*/

</script>
</body>
</html>
